<?php $this->_extends('_layouts/default_layout'); ?>
<?php echo $this->_block('title')?>
<?php echo $config['sitename'] ?>
<?php echo $this->_endblock()?>
<?php echo $this->_block('meta')?>
<meta
	name="keywords" content="<?php echo $config['keyword'] ?>" />
<meta
	name="description" content="<?php echo $config['description'] ?>">
<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>css/global.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>css/register.css" />
<style type="text/css">
.reg_list ol li{float:left;background:url(<?php echo $_BASE_DIR; ?>images/website/image/reg_one.gif) no-repeat left 2px; height:24px; overflow:hidden;text-indent:20px;}
.reg_list ol li.regtwo{ background-position:left -26px;}
.reg_list ol li.regone strong{color:#FF6C02;}
</style>
<script type="text/javascript" src="<?php echo $_BASE_DIR;?>js/base.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR;?>javascripts/jquery.min.js"></script>
<?php echo $this->_endblock()?>
<?php $this->_block('center'); ?>
<div class="reg_wrap">
	<p class="reg_login">已有DO CALL帐号请&nbsp;<a href="<?php echo url("users/login")?>">登录</a></p>
	<h2>20秒钟完成注册，请注意接收短信，注册成功即可领取最多300分钟免费话费!</h2>
	<div class="reg-form">
	
		<form name="accountForm" method="post" action="<?php echo url("users/reg",array('step'=>1));?>" onsubmit="return UserInfoBut();" id="RegForm">
		
		<ul>
			<li id="UserNameField" class="field">
				<div class="input">
					<label><font>*</font>手机号：</label>
					
					
						<input type="text" name="mobile" maxlength="30" tabindex="1" value="请输入您的手机号码" id="U_UserName" class="input_other">
					
				</div>
				<div class="msg attention">
					<p class="attention">请填写您的手机号码</p>
					<p class="error" ></p>		
					<p class="ok">&nbsp;</p>			
					
				</div>
			</li>
			
			<?php if($unlink == ''):?>
			<li id="parentuseridFiled" class="field">
				<div class="input">
					<label><font>*</font>推荐人：</label>
						<input type="text" name="parentuserid" maxlength="7" tabindex="1"  id="parentuserid" class="input_other">
				</div>
				<div class="msg attention">
					<p class="attention">填写您的推荐人</p>
					<p class="error" ></p>		
					<p class="ok">&nbsp;</p>			
					
				</div>
			</li>
			<?php else:?>
			<input type="hidden" name="parentuserid" value="<?php echo $unlink?>">
			<?php endif;?>
			<li id="U_CodeField" class="field code-field">
				<div class="input">
					<label><font>*</font>图片：</label>
					<input type="text" name="randvalue" maxlength="4" tabindex="5" value="" id="U_Code" class="U_Field">
					<img id="U_CheckCode"  width='80' height='25' border="0" style="display: none;" />
					<span id="code_info" style="display: none;">看不清？<a href="javascript:nchangeImg();" id="U_ChangeCodeImg">换一张</a></span>
					<script>
						function nchangeImg() {
							var img = document.getElementById("U_CheckCode");
							img.src = "<?php echo url('default::interface/code'); ?>/" + Math.random();
							img.style.display = "block";
							img.style.display = "inline";
							var codeInfo = document.getElementById("code_info");
							codeInfo.style.display = "block";
							codeInfo.style.display = "inline";
							var ctrl = document.getElementById("randvalue");
							if (ctrl != null) {
								ctrl.focus();
							}
						}
					</script>
				</div>
				<div class="msg attention">
					<p class="attention">请输入4位的验证码</p>
					<p class="error" ></p>
					<p class="ok">&nbsp;</p>				
				</div>
			</li>
			<li class="confer-field">
				<div class="input">					
					<input type="checkbox" name="userProtocol" value="on" checked="checked" id="U_confer">
					<label for="U_confer">我已阅读并同意DO CALL的</label><a href="<?php echo url("about/index",array('cid'=>109));?>" target='_blank'>《服务条款》</a>
				</div>
			</li>
			<li class="submit-field">
				<div class="input">
					<button id="U_SubmitBtn" type="submit" class="disabled" style="cursor: hand;"></button>
				</div>
			</li>
		</ul>
		</form>
	</div>
</div>
<div style="margin:0 auto;width:930px;">

	<script src="<?php echo $_BASE_DIR; ?>js/register.js" type="text/javascript"></script>
	<script type="text/javascript">
	function getmobile_rnd()
	{
		var mobile = $('#U_UserName');
		$.post('<?php echo url('default::interface/regsms')?>','mobile=' + mobile.val(),function(str){
			alert(str);},'json');
	}
	</script>				
					<?php $this->_endblock(); ?>
					
					